home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
hc.lbr
/
hc.doc
< prev
Wrap
Text File
|
2011-02-02
|
3KB
|
66 lines
***************************************************************
* [[hc.com]] *
***************************************************************
(C) 1983 Martin Smith
Hex File converter. Converts to and from HEX format. Can
automatically provide a COM or EXE extension.
Format:
>hc [d:][path]infile [[d:][path]outfile]
If TWO files are supplied, one of them MUST be HEX.
o First file = HEX, program does HEX -> COM, EXE or BIN.
o First file = COM, EXE or BIN, program does COM -> HEX.
If ONE file is supplied, the following takes place:
o First file = no extension or anything other than HEX,
Second file is created in HEX format.
o First file = HEX extension,
Second file is created with COM or EXE extension,
depending on file type.
If NO files are supplied, a short documentation is printed.
Ironically, you need a hexconverter to download HC.HEX. If you are
on a board with XMODEM protocol, you can download HC.COM directly,
but if not, use your present hexconverter to convert HC.HEX to HC.COM.
There are a lot of hexconverters out there in BBSland for IBM(tm)
and compatible computers, all following the same basic format.
Being written entirely in assembler, HC.COM is only 3311 bytes(com),
and 6850 bytes(hex). It is small, but it can convert files up to the
MS-DOS(tm) limit with no problem, and total conversion time for a
70K hex download on floppies is about 15 seconds.
HC.COM uses only regular MS-DOS 2.x function calls, so compatibility
should be no problem. PATH names are fully supported. Users of DOS 1.1
and earlier should not attempt to use this program.
A hexconverter is a tool for sending machine format files over the
telephone. When a BBS system is operating at seven data bits per
byte, eight bit files cannot be sent. The hexconverter divides each
byte into two bytes, so that all information is preserved. When it
operates in reverse, the hex file is converted back to its original
form, and checked for accuracy with a number placed at the end of
the file called unsurprisingly a checksum. This is simply the number
values of the bytes in the file added together modulo 2048 in this
case.
Program by:
Marty Smith CompuServe 72155,1214
310 Cinnamon Oak Lane (713) 661-1241 [Office]
Houston, TX 77079 (713) 464-6737 [Home]
12/10/83
661-1241 [Office]
Houston, TX 77079 (713) 464-6737 [Home]
12/10/83